package maygard;

import javax.inject.Named;

import com.google.api.server.spi.config.Api;
import com.google.api.server.spi.config.ApiMethod;
import com.google.api.server.spi.config.ApiMethod.HttpMethod;
import com.maygard.core.Probnormal;

@Api(name = "maygardtest")
public class MaygardApi {
	
	@ApiMethod(path = "probWithinStDev", httpMethod = HttpMethod.GET)
	public Container probWithinStDev(@Named("num_standard_dev") double n) {
		Probnormal probnormal = new Probnormal();
		Container container = new Container();
		container.d = probnormal.probnsd(n);
		
		return container;
	}	
}
